﻿/*---------------------------------------------------------------------------------
-----------------***DaLianQianYi***-----------------------
-----------------作者：大连仟亿科技------------------------------------------------------
-----------------联系作者：www.qianyikeji.com----------------------------------
-----------------时间：2018/8/19 11:59:47------------------------------------------
----------------------------------------------------------------------------------*/


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Donal.Xms.Model
{
    /// <summary>
    /// coupons_used_logs实体
    /// </summary>
    [Serializable]
    public partial class coupons_used_logs
    {
        public coupons_used_logs()
        { }

        #region Model

        private int _id = 0;
        private string _title = string.Empty;
        private string _contents = string.Empty;
        private DateTime? _start_time = null;
        private DateTime? _end_time = null;
        private int _status = 0;
        private decimal _conditions_amount = 0;
        private decimal _amount = 0;
        private int _sort_id = 99;
        private DateTime? _add_time = null;
        private int _expiration_form = 0;
        private int _expiration_num = 0;
        private int _superposition = 0;
        private string _goods_category_ids = string.Empty;
        private string _coupon_ids = string.Empty;
        private DateTime? _allotment_time = null;
        private string _over_time = string.Empty;
        private int _is_lock = 0;
        private string _order_no = string.Empty;
        private int _user_id = 0;
        private int _coupon_id = 0;
        private DateTime? _used_time = null;
        private string _company = string.Empty;
        private int _log_status = 0;
        private string _remark = string.Empty;
        private string _user_erp_code = string.Empty;
        private DateTime? _log_time = null;
        private string _backcolor = string.Empty;
        private string _img_url = string.Empty;

        /// <summary>
        /// 分配记录表ID
        /// </summary>
        public int coupons_allotment_id { get; set; } = 0;
        /// <summary>
        ///  图标
        /// </summary>
        public string img_url
        {
            set { _img_url = value; }
            get { return _img_url; }
        }
        /// <summary>
        ///  背景色
        /// </summary>
        public string backcolor
        {
            set { _backcolor = value; }
            get { return _backcolor; }
        }
        /// <summary>
        ///  记录时间
        /// </summary>
        public DateTime? log_time
        {
            set { _log_time = value; }
            get { return _log_time; }
        }
        /// <summary>
        ///  会员编号
        /// </summary>
        public string user_erp_code
        {
            set { _user_erp_code = value; }
            get { return _user_erp_code; }
        }
        /// <summary>
        ///  优惠券ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        ///  名称
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }
        /// <summary>
        ///  描述
        /// </summary>
        public string contents
        {
            set { _contents = value; }
            get { return _contents; }
        }
        /// <summary>
        ///  开始日期
        /// </summary>
        public DateTime? start_time
        {
            set { _start_time = value; }
            get { return _start_time; }
        }
        /// <summary>
        ///  结束日期
        /// </summary>
        public DateTime? end_time
        {
            set { _end_time = value; }
            get { return _end_time; }
        }
        /// <summary>
        ///  状态 0正常 1禁用
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        ///  门槛金额
        /// </summary>
        public decimal conditions_amount
        {
            set { _conditions_amount = value; }
            get { return _conditions_amount; }
        }
        /// <summary>
        ///  金额
        /// </summary>
        public decimal amount
        {
            set { _amount = value; }
            get { return _amount; }
        }
        /// <summary>
        ///  排序
        /// </summary>
        public int sort_id
        {
            set { _sort_id = value; }
            get { return _sort_id; }
        }
        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime? add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }
        /// <summary>
        ///  失效形式 0自动过期 1指定分配之日起在指定天数后过期 2永不过期
        /// </summary>
        public int expiration_form
        {
            set { _expiration_form = value; }
            get { return _expiration_form; }
        }
        /// <summary>
        ///  指定过期天数
        /// </summary>
        public int expiration_num
        {
            set { _expiration_num = value; }
            get { return _expiration_num; }
        }
        /// <summary>
        ///  0不可叠加 1可叠加
        /// </summary>
        public int superposition
        {
            set { _superposition = value; }
            get { return _superposition; }
        }
        /// <summary>
        ///  适用品ID，用英文逗号分开
        /// </summary>
        public string goods_category_ids
        {
            set { _goods_category_ids = value; }
            get { return _goods_category_ids; }
        }
        /// <summary>
        ///  联系使用券ID，用英文逗号分开
        /// </summary>
        public string coupon_ids
        {
            set { _coupon_ids = value; }
            get { return _coupon_ids; }
        }
        /// <summary>
        ///  分配时间
        /// </summary>
        public DateTime? allotment_time
        {
            set { _allotment_time = value; }
            get { return _allotment_time; }
        }
        /// <summary>
        ///  在此时间内有效，空表示没有时效
        /// </summary>
        public string over_time
        {
            set { _over_time = value; }
            get { return _over_time; }
        }
        /// <summary>
        ///  是否锁定 0 否 1是
        /// </summary>
        public int is_lock
        {
            set { _is_lock = value; }
            get { return _is_lock; }
        }
        /// <summary>
        ///  订单号
        /// </summary>
        public string order_no
        {
            set { _order_no = value; }
            get { return _order_no; }
        }
        /// <summary>
        ///  用户ID
        /// </summary>
        public int user_id
        {
            set { _user_id = value; }
            get { return _user_id; }
        }
        /// <summary>
        ///  优惠券ID
        /// </summary>
        public int coupon_id
        {
            set { _coupon_id = value; }
            get { return _coupon_id; }
        }
        /// <summary>
        ///  使用时间
        /// </summary>
        public DateTime? used_time
        {
            set { _used_time = value; }
            get { return _used_time; }
        }
        /// <summary>
        ///  会员简称
        /// </summary>
        public string company
        {
            set { _company = value; }
            get { return _company; }
        }
        /// <summary>
        ///  0使用 1退回 2订单获取 3充值获取 4分配 5冻结 6解冻
        /// </summary>
        public int log_status
        {
            set { _log_status = value; }
            get { return _log_status; }
        }
        /// <summary>
        ///  备注
        /// </summary>
        public string remark
        {
            set { _remark = value; }
            get { return _remark; }
        }


        #endregion
    }
}


